lunomails = {}

local path = minetest.get_modpath(minetest.get_current_modname())

dofile(path.."/api.lua")
dofile(path.."/chatcommand.lua")

minetest.register_on_joinplayer(function(player)
	lunomails.open()
end)
minetest.register_on_leaveplayer(function(player)
	lunomails.save()
end)
minetest.register_on_shutdown(function()
	lunomails.save()
end)
--[[
minetest.register_globalstep(function(dtime)
	lunomails.hud_check()
end)
]]--

minetest.log('action',"["..minetest.get_current_modname():upper().."] Carregado!")
